package com.baitiaojun.common.domain.model.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("分页排序")
public class PageSorted {

    public static final String ASC = "asc";

    public static final String DESC = "desc";

    @ApiModelProperty("排序列")
    private String field;

    @ApiModelProperty("排序类型, asc或者是desc")
    private String sortedType;
}
